<html>
<?php 
require("../javascripts/KoolTabs/kooltabs/kooltabs.php");
$kts = new KoolTabs("kts");
$kts->styleFolder = "../javascript/KoolTabs/kooltabs/styles/default/";

if (isset($_SESSION['cantv']['usuario'])) 
{

$palabra= "Bienvenido ". $_SESSION['cantv']['usuario'];
$kts->addTab("root", "Principal", "$palabra");
}
$kts->addTab("root",  "Principal", "Principal", "#", null, true);
$kts->addTab("root",  "Cliente", "Cliente", "#", null, true);
$kts->addTab("root", "Contrato", "Contrato","#"); 
$kts->addTab("root", "Medio de Pago", "Medio de Pago", "#");
$kts->align="right";
session_start();
//clases cliente. class boton?>
			<head>
            <title>sistema auto-admin</title>
            <script type="javascript" src="../javascripts/cliente_js.js"> </script>
			<style type="text/css">  @import url("../css/login2.css");  </style>
		    </head>
			<body>

                <div class="body">
                    <div id="head" name="head" class="head">
                    <!--<div >
                    
                    </div>-->
                    <!--<div >  </div> -->
                    <!--<div id="menu" name="menu" class="menu">-->
                    <table width="100%">
                    <tr>
                    <img src="../img/cabezal_bolivariano.gif" alt="cabezal" title="cabezal" border="0" width="100%" >
                    </tr>
                    <tr>
                        <td id="logo" name="logo" class="logo">
                        <img src="../img/cantv-net.gif" alt="CANTV logo" title="CANTV logo" border="0" width="180"/>
                        </td>
                        <td align="right"> <?php if (isset($_SESSION['cantv']['usuario'])) 
												{
												$palabra= "Bienvenid@ ". $_SESSION['cantv']['usuario'];
												echo "$palabra\n";
						 						}
												echo "<div class='menu'> ".
												$kts->Render(). "</div>"; 
						 ?>
                        </td>
                     </tr>
                    </table>
                    </div> <!--fin del head-->
                    <div id="middle" name="middle" class="middle">
                    <div id="left" name="left" class="left">
                    <a href="cliente.php?Opc=Consultar">Consultar Datos del Cliente</a>
                    <a href="cliente.php?Opc=Modificar">Modificar Datos del Cliente</a>
                    <a href="cliente.php?Opc=Mostrar_historial_de_Consumo"> Mostrar historial de Consumo</a>
                    <a href="cliente.php?Opc=Mostrar_cambios_de_plan">Mostrar cambios de planes</a>
                    <a href="cliente.php?Opc=Consultar_datos_del_contrato"> Consultar datos del Contrato </a>
                     </div> <!-- Contenido del menu izquierdo-->
                            <div id="content" name="content" class="content"> <!-- Contenido de la pagina-->
                            <div id="login" name="login" class="login">
                                <h3>Datos del cliente</h3>
                                <form name="cliente" method="post" action="../../controllers/cliente_action.php" class="cliente">
                                  CI o RIF: 
                                    <select name="tipo_cliente" id="tipo_cliente" onChange="natural_juridico()">
                                      <option value='V' selected>V</option>
                                      <option value='E'>E</option>
                                      <option value='J'>J</option>
                                      <option value='G'>G</option>
                                      <option value='W'>W</option>
                                      <option value='I'>I</option>
                                    </select>
                                  <input type="text" name="num_id" id="num_id" maxlength="10" size="20">
                                  <div class="boton">
                                  <br/>
                                  <?php
                                  if (isset($_GET['Opc']))
                                  {
                                          switch($_GET['Opc'])
                                                  {
                                                    case 'Modificar':
                                                    echo "<input type='submit' name='Modificar' id='Modificar' value='".$_GET['Opc']."' onsubmit='natural_juridico()'>";
                                                    break;
                                                    case 'Consultar':
                                                    echo "<input type='submit' name='Consultar' id='Consultar' value='".$_GET['Opc']."' onsubmit='natural_juridico()'>";
                                                    break;
                                                    case 'Mostrar_historial_de_Consumo':
                                                    echo "<input type='submit' name='Consultar' id='Consultar' value='".str_replace("_", " ", $_GET['Opc'])."' onsubmit='natural_juridico()'>";
                                                    break;
                                                    case 'Mostrar_cambios_de_plan':
                                                    echo "<input type='submit' name='Consultar' id='Consultar' value='".str_replace("_", " ", $_GET['Opc'])."' onsubmit='natural_juridico()'>";
                                                    case 'Consultar_datos_del_contrato':
                                                    echo "<input type='submit' name='Consultar' id='Consultar' value='".str_replace("_", " ", $_GET['Opc'])."' onsubmit='natural_juridico()'>";
                                                    break;
                                                    default:
                                                    echo "<input type='submit' name='Consultar' id='Consultar' value='Consultar' onsubmit='natural_juridico()'>";
                                                    break;
                                                    }
                                    }
                                    else
                                    { echo "<input type='submit' name='Consultar' id='Consultar' value='Consultar' onsubmit='natural_juridico()'>";}
                                 ?>
                                  </div>
                                </form>
                            </div>
                    </div>
                     </div>         
           <div id="footer" name="footer" class="footer">
    </div>
    </div> <!-- fin del div body-->
</body>
</html>